// 登录参数类型
export interface loginForm {
  username: string;
  password: string;
}

// 接口返回通用格式
export interface ResponseData {
  code: number;
  message: string;
  ok: boolean;
}

// 登录返回类型
export interface loginResponseData extends ResponseData {
  data?: string;
}

// 登出返回类型
export interface logoutResponseData extends ResponseData {
  data?: string;
}

interface userType {
  userId: number;
  avatar: string;
  username: string;
  password: string;
  desc: string;
  roles: string[];
  buttons: string[];
  routes: string[];
  token: string;
  message?: string;
}
// 用户信息返回类型
export interface userResponseData extends ResponseData {
  data: userType;
}
